home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / Makefile.sgi < prev    next >
Makefile  |  1991-09-23  |  979b  |  55 lines

  1. #
  2. # Makefile for vogl (On SGI-GL machines)
  3. # Will only compile the Hershey library and the examples, linking with
  4. # -lgl_s
  5. #
  6. SHELL = /bin/sh
  7. #
  8. CC = cc
  9.  
  10. # Where the fonts a going to live (For making the Hershey library)
  11. #
  12. #FONTLIB = /usr/local/lib/hershey/
  13. FONTLIB = /tmp/decr
  14.  
  15. CFLAGS = -DSYS5 -O -float -DSGI
  16.  
  17. #
  18. # The name of the library to install and where to put it.
  19. #
  20. LIBH = libhershey.a
  21. DEST = /usr/local/lib
  22.  
  23.  
  24. RANLIB = echo
  25.  
  26. LIBS = -lgl_s
  27.  
  28. all:
  29.     cd hershey/src; make -f Makefile.sgi \
  30.             CC="$(CC)" \
  31.             FONTLIB="$(FONTLIB)" \
  32.             LIBS="$(LIBS)"\
  33.             RANLIB="$(RANLIB)"
  34.  
  35.     cd examples; make -f Makefile.sgi \
  36.             CC="$(CC)" \
  37.             CFLAGS="$(CFLAGS)" \
  38.             LIBS="$(LIBS)"
  39.  
  40. install:
  41.     cp hershey/src/$(HLIB) $(DEST)
  42.     chmod 644 $(DEST)/$(LIB)
  43.     $(RANLIB) $(DEST)/$(LIB)
  44.  
  45. clean:
  46.     cd hershey/src; make clean
  47.     cd examples; make clean
  48.     cd examples; make -f Makefile.f77 clean
  49.  
  50. clobber:
  51.     cd hershey/src; make clobber
  52.     cd examples; make clobber
  53.     cd examples; make -f Makefile.f77 clobber
  54.